'use strict'

function succeess(res){
    console.log(res);
}

function fail(res){
    console.log('错错错');
}

let req = new XMLHttpRequest();
req.onreadystatechange=function(){
    if(req.readyState === 4 ){
        if(req.status === 200){
            succeess(req.response)
        }else{
            fail()
        }
    }else{
        console.log('zxc');
    }
}

req.open('get','file:///C:/Users/Administrator/Desktop/class-1--js-class-notes/%E5%91%A8%E6%98%9F%E5%AE%87/HTML/20211130.html')
req.send()